<#if isWithPackage?exists && isWithPackage==true>package ${packageName}.entity;</#if>

<#if isAutoImport?exists && isAutoImport==true>
<#if isLombok?exists && isLombok==true>
import lombok.Getter;
import lombok.Setter;

</#if>
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;
</#if>

@Entity
<#if isLombok?exists && isLombok==true>@Getter</#if>
<#if isLombok?exists && isLombok==true>@Setter</#if>
<#if isComment?exists && isComment==true>@Table(name = "${classInfo.originTableName}")</#if>
public class ${classInfo.className} extends AuditBaseEntity<Integer> implements Serializable {
<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
<#list classInfo.fieldList as fieldItem >
<#--    <#if isComment?exists && isComment==true>/**-->
<#--    * ${fieldItem.fieldComment}-->
<#--    */</#if>-->
<#--    <#if isComment?exists && isComment==true>@Column(name="${fieldItem.columnName}")</#if>-->
    <#if fieldItem.fieldName != "id">
    private ${fieldItem.fieldClass} ${fieldItem.fieldName};
    </#if>
</#list>
<#--    public ${classInfo.className}() {-->
<#--    }-->
</#if>
}
